package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Author zhengmf
 * @Date 2018/12/29  16:23
 */
@ApiModel("保存菜单参数")
public class SaveMenuEvt implements Serializable {
    private static final long serialVersionUID = -8013372476846512142L;
    @ApiModelProperty("菜单ID")
    private Long menuId;

    @ApiModelProperty("菜单中文名")
    @NotBlank
    private String nameCn;

    @ApiModelProperty("菜单英文名")
    @NotBlank
    private String nameEn;

    @ApiModelProperty("上级菜单ID")
    private Long parentId = 0L;

    @ApiModelProperty("URL")
    private String url;

    @ApiModelProperty("URL类型")
    private int urlType;

    @ApiModelProperty(value = "是否启用",notes = "1:启用,0:禁用")
    private Integer enabled;

    @ApiModelProperty("菜单描述信息")
    private String menuDesc;

    @ApiModelProperty("图片信息")
    private String imageUrl;

    @ApiModelProperty("菜单类型")
    @NotNull
    private Integer menuType;

    @ApiModelProperty("菜单序号(排序字段)")
    private Integer menuIndex;

    @ApiModelProperty("权限编码")
    private String permissionCode;

    @ApiModelProperty("帮助目录Id")
    private List<String> catalogIds;

    @ApiModelProperty("是否改变父级，修改的时候判断")
    private Boolean changeParent = false;

    public Boolean getChangeParent() {
        return changeParent;
    }

    public void setChangeParent(Boolean changeParent) {
        this.changeParent = changeParent;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getUrlType() {
        return urlType;
    }

    public void setUrlType(int urlType) {
        this.urlType = urlType;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getMenuDesc() {
        return menuDesc;
    }

    public void setMenuDesc(String menuDesc) {
        this.menuDesc = menuDesc;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getMenuType() {
        return menuType;
    }

    public void setMenuType(Integer menuType) {
        this.menuType = menuType;
    }

    public Integer getMenuIndex() {
        return menuIndex;
    }

    public void setMenuIndex(Integer menuIndex) {
        this.menuIndex = menuIndex;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public List<String> getCatalogIds() {
        return catalogIds;
    }

    public void setCatalogIds(List<String> catalogIds) {
        this.catalogIds = catalogIds;
    }

    @Override
    public String toString() {
        return "SaveMenuEvt{" +
                "menuId=" + menuId +
                ", nameCn='" + nameCn + '\'' +
                ", nameEn='" + nameEn + '\'' +
                ", parentId=" + parentId +
                ", url='" + url + '\'' +
                ", urlType=" + urlType +
                ", enabled=" + enabled +
                ", menuDesc='" + menuDesc + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", menuType=" + menuType +
                ", menuIndex=" + menuIndex +
                ", permissionCode='" + permissionCode + '\'' +
                ", catalogIds=" + catalogIds +
                ", changeParent=" + changeParent +
                '}';
    }
}
